home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d19 / ansi_f.arc / ANSI.DOC < prev    next >
Encoding:
Text File  |  1990-12-11  |  5.6 KB  |  112 lines

  1. ANSI.COM
  2. Command
  3.  
  4. Michael J. Mefford
  5. 1989 No. 2 (Utilities)
  6.  
  7.  
  8. Purpose:    A memory-resident utility that enables selectable use of the
  9. extended screen and keyboard control sequences that normally require loading the
  10. ANSI.SYS device driver.  Unlike ANSI.SYS, ANSI.COM supports all video modes,
  11. permits sizing and clearing the key-assignment buffer, and provides high-speed
  12. screen updating.
  13.     
  14. Format: ANSI [FAST | SLOW][ON | OFF][KON | KOFF][PON | POFF]
  15.              [/B nnn][/P nn][/C][/U][/Q]
  16.     
  17. Remarks:    ANSI.COM may be installed either at the DOS prompt or through an
  18. AUTOEXEC.BAT file.  It will not load itself if ANSI.SYS has already been loaded
  19. as part of a CONFIG.SYS file.  ANSI.COM will not load multiple copies of itself,
  20. so its command name may be invoked repeatedly in the same session to change
  21. user-selectable parameters.
  22.  
  23.     Upon loading, ANSI defaults to the FAST and ON status parameters.  For
  24. use with IBM CGA video cards (where direct screen writes produce "snow") or with
  25. some screen capture software, the SLOW (screen writing via the BIOS, as with
  26. ANSI.SYS) status option may be selected.  Entering ANSI OFF disables recognition
  27. of the ANSI control codes (but reassigned keys are still functional).
  28.  
  29.         Also upon loading ANSI defaults to KON and PON status parameters.
  30. Entering POFF disables the ANSI reassignment function so no new reassignments
  31. can be entered until reactivated by PON. Current assignments are still active.
  32. This prevents unauthorized changes to you keyboard being made by silly people
  33. who embed ANSI sequences into text documents to do harm to your system.
  34. Entering KOFF disables the ANSI reassignments but still allows new assignments
  35. to be made to the buffer or old ones removed. This allows simple ON / OFF
  36. control of assigments without clearing the buffer and reloading each time
  37. when a particular program is affected by the assignments.  All keyboard
  38. reassignments in the buffer become active again upon the issuing PON. The /Q
  39. switch can be used to suppress output when executed. /P nn can be used to
  40. protect a number of lines at the top of the screen from being scrolled when
  41. the cursor reaches the bottom of the screen. Scrolling will occur starting
  42. at the line specified (Zero is the top line and the Default setting.)
  43.  
  44.     The ANSI.COM key assignment buffer defaults to a size of 200 bytes.  The
  45. buffer may be increased to as much as 60K or decreased to 0 bytes by entering
  46. ANSI with the /B switch and the desired number of bytes as nnn.  Resizing the
  47. buffer after initial installation requires deinstallation, which may be
  48. accomplished using the /U switch.  Current key assignments are lost if the
  49. buffer is resized.  The buffer can be cleared without resizing by invoking ANSI
  50. with the /C switch.
  51.  
  52.     The full command set of IBM-ANSI control sequences is printed in the
  53. original article and in the DOS Technical Reference manual.  This information
  54. can also be downloaded from PC Magnet.
  55.  
  56.     Available for downloading from PC MagNet (see the ANSI by Modem
  57. sidebar), ANSI.COM is already compiled and ready to run.  ANSI.BAS will
  58. automatically create ANSI.COM when run once in BASIC.  To create ANSI.COM from
  59. the ANSI.ASM source code requires use of a macro assembler (IBM or Microsoft,
  60. Version 2 or later) and the following commands:
  61.  
  62.        New /T option added to test if installed. Attempts to do an uninstall
  63. without actually uninstalling. If Not Installed an Errorlevel of 1 occurs.
  64. If already installed an ErrorLevel of Zero is returned. If not already
  65. installed, the program will not be installed when testing.
  66.  
  67.        New /S option will load stat. data from ANSICOM.SYS file for PCBoard
  68. @Variable@ substitution. This file can be created by another program (I
  69. will write one soon in QuickBasic) which reads PCBoard.DAT, CNAMES, User.Sys
  70. and User.Inf and formats the data into the required format of ANSICOM.SYS.
  71. ANSICOM.ASM shows the format of the storage. The length must be 495 Bytes
  72. (extra will be ignored, less will issue error message.) Issuing the /S option
  73. without ANSICOM.SYS being present in the current directory will result in an
  74. error message also.
  75.  
  76.  Update 3/2/89 - Fix for DOS function 0Bh, Check Standard Input Status
  77.                      and STDIN in ANSI_INT_21 handler.
  78.                  Leading zero inserted for Device Status Report for
  79.                      single digit cursor positions.
  80.                  INFORMATION typo 40 for 40H.
  81.                  WRITE_FAST modified to handle CR and LF instead of
  82.                      WRITE_CHAR.
  83.  Update 3/7/89 - Fix for CLS in graphics mode.          Version 1.2
  84.  
  85.  Update 8/8/89 - STI added to INT 21 and 29 handler.    Version 1.3
  86.  
  87.  Update 01/01/90 - [KON | KOFF] and [PON | POFF] added  Version 1.31
  88.  
  89.  Update 03/23/90 - /Q option added for no output when exectued  1.32
  90.  
  91.  Update 05/16/90 - removed Syntax from output unless needed     1.33
  92.                    added /T test for load.
  93.  
  94.  Update 10/28/90 - added /P nn command to 'Protect' nn lines    1.34
  95.                    at the top of the screen from scrolling
  96.                    up when the bottom of the screen is reached.
  97.  
  98.  Update 12/01/90 - Added PCBoard @X## color code support        1.35
  99.                    also added @Variable@ Support
  100.                    added /S to load stats data from file
  101.  
  102.  Update 12/12/90 - My mistake, I didn't realize @X00 saved      1.36
  103.                    the color and @XFF restored it. Works now.
  104.                    Also made prompts return to start of line
  105.                    when cleared (like PCBoard does) & QON
  106.                    now changes @MORE@ & @PAUSE@ into @WAIT@
  107.                    Gary Meeker (Versions 1.31 to 1.36)
  108.  
  109. MASM ANSI;
  110. LINK ANSI;
  111. EXE2BIN ANSI ANSI.COM;
  112.